<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Editing Recipient</title>
    <link href="{views_url}css/styles.css" rel="stylesheet" type="text/css"/>
    <style>
      body { background: none; padding: 1em; }
    </style>
  </head>

  <body>
    <form action="" method="post" enctype="multipart/form-data">
      <input name="client" type="hidden" value="{$client->id}" />

      <div class="control-group">
        <label for="email">Email :</label>
        <input name="email" value="{$recipient->email}" type="email" required="required" />
      </div>
                
      <div class="control-group">
        <label for="firstname">Firstname :</label>
        <input name="firstname" value="{$recipient->firstname}" type="text" />
      </div>

      <div class="control-group">
        <label for="lastname">Lastname :</label>
        <input name="lastname" value="{$recipient->lastname}" type="text" />
      </div>
         
      <p>{$client->recipient->count()} personas registradas.</p>

      <div class="control-group">
        <input type="submit" class="btn btn-primary" name="button_save" value="Registrarme">        
      </div>

    </form>
  </body>
</html>